<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>reportEqualityFailure - ArduinoUnit Library - ArduinoUnit Documentation</title>
<link href="styles/styles.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<h1><a href="index.html"><img border="0" src="images/arduinounit.png"/></a> <span class="success">Arduino</span><span class="failure">Unit</span> Documentation</h1>

<a href="reference.html">ArduinoUnit Library Reference</a>
<h2>reportEqualityFailure()</h2>
<h3>Description</h3>
<p>
Reports a test failure from an <a href="assertEquals.html"><code>assertEquals()</code></a> assertion.
</p>
<h3>Syntax</h3>
<code>
reportEqualityFailure(test, lineNumber, expected, actual)
</code>
<h3>Parameters</h3>
<p>
<code>test</code>: the failing test<br/>
<code>lineNumber</code>: the line number on which the test failed<br/>
<code>expected</code>: the expected value (as a string)<br/>
<code>actual</code>: the actual value (as a string)
</p>
<h3>Example</h3>
<p>
See <a href="custom-reporter.html">writing a custom reporter</a>.
</p>

</body>
</html>